home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / rpc / auth_unix.h next >
C/C++ Source or Header  |  1994-10-03  |  1KB  |  57 lines

  1. #ifndef RPC_AUTH_UNIX_H
  2. #define RPC_AUTH_UNIX_H
  3. /*
  4.  * $Id: auth_unix.h,v 4.1 1994/09/26 08:09:11 jraja Exp jraja $
  5.  *
  6.  * Protocol for UNIX style authentication parameters for RPC
  7.  *
  8.  * Copyright © 1994 AmiTCP/IP Group,
  9.  *                  Network Solutions Development Inc.
  10.  *                  All rights reserved.
  11.  *
  12.  */
  13. /* @(#)auth_unix.h    2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */
  14. /*      @(#)auth_unix.h 1.5 86/07/16 SMI      */
  15.  
  16. /*
  17.  * Copyright (C) 1984, Sun Microsystems, Inc.
  18.  */
  19.  
  20. /*
  21.  * The system is very weak.  The client uses no encryption for  it
  22.  * credentials and only sends null verifiers.  The server sends backs
  23.  * null verifiers or optionally a verifier that suggests a new short hand
  24.  * for the credentials.
  25.  */
  26.  
  27. /* The machine name is part of a credential; it may not exceed 255 bytes */
  28. #define MAX_MACHINE_NAME 255
  29.  
  30. /* gids compose part of a credential; there may not be more than 16 of them */
  31. #define NGRPS 16
  32.  
  33. /*
  34.  * Unix style credentials.
  35.  */
  36. struct authunix_parms {
  37.     u_long     aup_time;
  38.     char    *aup_machname;
  39.     uid_t     aup_uid;
  40.     gid_t     aup_gid;
  41.     u_int     aup_len;
  42.     gid_t    *aup_gids;
  43. };
  44.  
  45. extern bool_t XDRFUN xdr_authunix_parms(XDR * xdrs, struct authunix_parms * p);
  46.  
  47. /* 
  48.  * If a response verifier has flavor AUTH_SHORT, 
  49.  * then the body of the response verifier encapsulates the following structure;
  50.  * again it is serialized in the obvious fashion.
  51.  */
  52. struct short_hand_verf {
  53.     struct opaque_auth new_cred;
  54. };
  55.  
  56. #endif /* !RPC_AUTH_UNIX_H */
  57.